using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace imitateMacQQ.WebApi.Repository.EFCore.Model;

[Table("user")]
public class User
{
    public int Id { get; set; }
    [Required] [MaxLength(30)] public string? Account { get; set; }
    [Required] [MaxLength(30)] public string? Password { get; set; }
    [Required] public bool IsVip { get; set; }
    [Required] [MaxLength(30)] public string? UserName { get; set; }
    [Required] [MaxLength(5)] public string? Sex { get; set; } = "man";
    [MaxLength(80)] public string? Live { get; set; } = "";
    public DateTime Birthday { get; set; } = DateTime.Now;

    public bool Show { get; set; } = true;
    [Required] [MaxLength(100)] public string? Intro { get; set; } = "";
    [Required] [MaxLength(254)] public string? Header { get; set; } = "";
    [Required] public int State { get; set; } = 4;
    [Required] public DateTime CreateDateTime { get; set; } = DateTime.Now;
    [Required] [MaxLength(30)] public string? UseDateTime { get; set; } = "0";
    [Required] [MaxLength(11)] public string? Phone { get; set; }
}